avoid use of not recommended QString::sprintf() in favor of QData::toString().
authortsteven4 <tsteven4@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Thu, 18 Sep 2014 15:24:15 +0000 (15:24 +0000)
committertsteven4 <tsteven4@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Thu, 18 Sep 2014 15:24:15 +0000 (15:24 +0000)
gpsbabel/kml.cc

index e428a39238804a16cf8ac8bcd7d5f59bcab7e364..e1532410fd750b1309651307648aff3a54010784 100644 (file)
@@ -1382,11 +1382,7 @@ QString kml_geocache_get_logs(const Waypoint* wpt)
     if (logpart) {
       gpsbabel::DateTime t = xml_parse_time(logpart->cdata);
       if (t.isValid()) {
-        r += QString().sprintf(
-                  " %04d-%02d-%02d",
-                  t.date().year(),
-                  t.date().month(),
-                  t.date().day());
+        r += t.date().toString(Qt::ISODate);
       }
     }